/*
package org.itboys.yefu.util;

*/
/**
 * Created by hasee on 2017/5/21.
 *//*

public class MessageUtils {
    private static String url="http://124.232.156.57:8808/SmsService.asmx";//提供接口的地址
    private static String soapaction="http://ms.dx115.cn/";   //域名，这是在server定义的

    public static void sendMessage(String mobile,String msg) {

        Service service=new Service();
        try{
            Call call=(Call)service.createCall();
            call.setTargetEndpointAddress(url);
            call.setOperationName(new QName(soapaction,"SendSMS ")); //设置要调用哪个方法
            call.addParameter(new QName(soapaction,"strUserAccount"), //设置要传递的参数
                    org.apache.axis.encoding.XMLType.XSD_STRING,
                    javax.xml.rpc.ParameterMode.IN);
            call.addParameter(new QName(soapaction,"strUserPassword"), //设置要传递的参数
                    org.apache.axis.encoding.XMLType.XSD_STRING,
                    javax.xml.rpc.ParameterMode.IN);
            call.addParameter(new QName(soapaction,"strTelNumber"), //设置要传递的参数
                    org.apache.axis.encoding.XMLType.XSD_STRING,
                    javax.xml.rpc.ParameterMode.IN);
            call.addParameter(new QName(soapaction,"strMsg"), //设置要传递的参数
                    org.apache.axis.encoding.XMLType.XSD_STRING,
                    javax.xml.rpc.ParameterMode.IN);




            call.setReturnType(new QName(soapaction,"SendSMS"),Vector.class); //要返回的数据类型（自定义类型）


            call.setUseSOAPAction(true);
            call.setSOAPActionURI(soapaction + "SendSMS");

            //  您的注册验证码是：****【豪意电器】
            call.invoke(new Object[]{"hnhydq","123456",mobile,msg+"【豪意电器】"});//调用方法并传递参数
            //Vector v=(Vector)call.invoke(new Object[]{"hnhydq","123456","18968173081","您的注册验证码是：1234【豪意电器】"});//调用方法并传递参数
            //for(int i=0;i<v.size();i++) {
            //    System.out.println(v.get(i));
            //}

        }catch(Exception ex){
            ex.printStackTrace();
        }
    }
}
*/
